﻿using FluentValidation;

namespace FileService.WebApi.Controllers
{
    public record FileRequest(string Name, string Url);
    public class FileRequestValidator : AbstractValidator<FileRequest>
    {
        public FileRequestValidator()
        {
            RuleFor(e => e.Url).NotNull().NotEmpty();
            RuleFor(e => e.Name).NotNull().NotEmpty();
        }
   
    }
}